package cn.edu.hznu.ocw.actions;

import org.apache.struts2.config.Namespace;
import org.apache.struts2.config.ParentPackage;
import org.apache.struts2.config.Result;


@ParentPackage("struts-default")
@Namespace("/")
@Result("/ocw-admin/index.jsp")
public class LoginAction extends OCWAction {

	private static final long serialVersionUID = -4379010708543323677L;
	private String username = null;
	private String password = null;
	private byte logintype;

	@Override
	public String execute() throws Exception {
		// request.put("username", username);
		return SUCCESS;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public byte getLogintype() {
		return logintype;
	}

	public void setLogintype(byte logintype) {
		this.logintype = logintype;
	}

}
